package test.com.main;

import com.alibaba.fastjson.JSON;

import java.util.Map;

/**
 * Created on 2017/2/10.
 */
public class Main {
    public static void main(String[] args) {
        String str = "{\n" +
                "  \"purchase\":{\n" +
                "    \"text\":\"立即购买\"\n" +
                "  },\n" +
                "  \"selloutSoon\":{\n" +
                "    \"text\":\"即将售罄\",\n" +
                "    \"color\":\"\",\n" +
                "    \"opacity\":\"\"\n" +
                "  },\n" +
                "  \"lastChance\":{\n" +
                "    \"text\":\"最后疯抢\",\n" +
                "    \"color\":\"\",\n" +
                "    \"opacity\":\"\"\n" +
                "  },\n" +
                "  \"flashSale\":{ \n" +
                "    \"text\":\"立即购买\",\n" +
                "    \"color\":\"\",\n" +
                "    \"opacity\":\"\"\n" +
                "  }\n" +
                "}";
        Map map = JSON.parseObject(str, Map.class);
        System.out.println(map);

        String s1 = "T+1";
        System.out.println(s1.indexOf("+"));

        System.out.println(Integer.valueOf("+1980"));
    }
}
